import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer'
import permissionMock from './modules/permission'
import userMock from './modules/user'
import roleMock from './modules/role'

const mockModules = [
  ...permissionMock,
  ...userMock,
  ...roleMock
]

export function setupMockServer() {
  createProdMockServer(mockModules)
}
